﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RendicionVentaLiqListGrid.ascx.cs" 

Inherits="UILGestion.VentaAdmin.RendicionVenta.RendicionVentaLiqListGrid" %>


<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>

<asp:Panel runat="server" ID="PanelRecepcion" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">
               
                           
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="numDocumento" ForeColor="Blue" runat="server">Numero </asp:LinkButton>
                </th>
                  <th id="Th3" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="UI" ForeColor="Blue" runat="server">UI</asp:LinkButton>
                </th>
                  <th id="Th4" runat="server">
                    <asp:LinkButton ID="LinkButton4" CommandName="Sort" CommandArgument="concepto" ForeColor="Blue" runat="server">Concepto</asp:LinkButton>
                </th>
                  <th id="Th9" runat="server">
                    <asp:LinkButton ID="LinkButton7" CommandName="Sort" CommandArgument="fecha" ForeColor="Blue" runat="server">Fecha</asp:LinkButton>
                </th>
              
              <th id="Th1" runat="server">
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="fecha" ForeColor="Blue" runat="server">Total</asp:LinkButton>
                </th>
               
                <th id="Th33" runat="server">
                    <asp:LinkButton ID="LinkButton32" CommandName="Sort" CommandArgument="" runat="server"></asp:LinkButton>
                </th>
                 
                
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
           <td width="120px">
               <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numDocumento").ToString()%>'  
                 Target="_self"  ID="Hyperlink1"
                NavigateUrl='<%# "~/VentaAdmin/RendicionVenta/RendicionVentaReadForm.aspx?id=" + 
                DataBinder.Eval (Container.DataItem,"idInternal").ToString()  +
                "&idProyecto=" + DataBinder.Eval (Container.DataItem,"idProyecto").ToString()
                %>' 
               />   
            </td>

             <td  align="left" width="300px">
                 <%# Eval("etapa")%> 
                 <%# Eval("localizacion")%> 
                 <%# Eval("UIStr")%> <br />
            </td>
            <td  align="left" width="200px">
                 
                 <%# Eval("concepto")%> <br />
            </td>
             <td  align="right" width="70px">
                 <%# Eval("fechaStr")%> <br />
            </td>
           
        <td  align="right" width="120px">
                 <%# Eval("totalStr")%> <br />
            </td>
           <td  align="right" width="60px">
               <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                                       CommandArgument='<%# Eval("idInternal")%>' ImageUrl="../../Images/delete.gif" 
                                       OnClick="Deleteitem" OnClientClick="return confirm('Usted quiere eliminar?')" />
                  
            </td>
           
            
           <%--<td>
            
               <asp:Repeater ID="Repeater1" runat="server" DataSource='<%# Eval("LiquidacionVenta") %>'>
               <HeaderTemplate>
               <table>
               <tr class="ms-crm-List-Header" border="0">
                    <td >TIPO</td>
                    <td align="right">Fecha</td>
                    <td  align="right">Banco</td>
                    <td  align="right">Cuenta</td>
                    <td  align="right">numero</td>
                    <td align="right">Total</td>
                    </tr>
               </tr>
               </table>
               
               </HeaderTemplate>
                    <ItemTemplate>
                    <table style="background-color:White">
                    <tr>
                    <td  width="75px"> 
                    <%# ((DAL.LiquidacionVenta)Container.DataItem).GrupoDatoitem.descripcion%>
                    
                    </td>
                    <td  width="75px"> <%# ((DAL.LiquidacionVenta)Container.DataItem).fechaDeposito.ToShortDateString()%>
                    
                    </td>
                    <td width="150px" align="right">
                        <%# ((DAL.LiquidacionVenta)Container.DataItem).CuentaBanco.Banco.descripcion%>
                    </td>
                    <td width="250px" align="right">
                        <%# ((DAL.LiquidacionVenta)Container.DataItem).CuentaBanco.descripcion%>
                    </td>
                    <td width="120px" align="right">
                        <%# ((DAL.LiquidacionVenta)Container.DataItem).numero%>
                    </td>
                      <td width="120px" align="right">
                    <%# ((DAL.LiquidacionVenta)Container.DataItem).total%>
                    </td>
                    
                  
                    </tr>
                    </table>

                        
                    </ItemTemplate>
                </asp:Repeater>
            
            </td> --%>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



</asp:Panel>

    
     